package com.autoTest.common;

import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User:xieChao
 * Date:2023/2/20 15:51
 */
public class Util {
    private String[] name = new String[]{"李二","王二","麻子","狗蛋","班开文"};
    public String getName(){
        int index = (int)(Math.random()* name.length);
        return name[index];
    }
    private String[] loginname = new String[]{"lier","wer","mzi","gdan","bkwen"};
    public String getLoginName(){
        int index = (int)(Math.random()* loginname.length);
        return loginname[index];
    }
    private String[] password = new String[]{"123","234","xcc","vcc"};
    public String password1(){
        int l = (int)(Math.random()* password.length);
        return password[l];
    }
    public String password2(){
        return password1();
    }

    public List<Integer> age(){
        int index = (int)(Math.random()* name.length);
        int age = index<1?1:index;
        List<Integer> list = new ArrayList<>();
        list.add(age);
        return list;
    }

}
